package com.itheima.example;

import java.util.Arrays;

public class Example16 {
    public static void main(String[] args) {
        int[] arr={9,8,3,5,2};
        int[] copied=Arrays.copyOfRange(arr, 1, 7);
        System.out.println("复制数组:"+Arrays.toString(copied));
        Arrays.sort(arr);
        System.out.println("排序后:"+Arrays.toString(arr));
        Arrays.fill(arr, 8);
        System.out.println("填充数组:"+Arrays.toString(arr));
    }
}
